﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Asset/EassetMaster.master" AutoEventWireup="true"
    CodeBehind="AssetsRequisitionsForm.aspx.cs" Inherits="Eassets.UI.Asset.AssetsRequisitionsForm" %>

<asp:Content ID="Content3" ContentPlaceHolderID="HeadPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <%@ Register Src="~/Components/FlashMessage.ascx" TagName="FlashMessage" TagPrefix="osm" %>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="formtitle">
        <asp:Label ID="labelFormTitle" runat="server" Text="Asset Requisition Note"></asp:Label>
    </div>
    <fieldset>
        <ul class="form">
            <li>
                <div class="formfield">
                    <table>
                        <tr>
                            <td colspan="2" align="right">
                                <osm:FlashMessage ID="FlashMessage1" runat="server" />
                                &nbsp;&nbsp;&nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="labelRequestingOrganizationLevel" runat="server" Text="Requesting Organization Level"
                                    CssClass="legendlabel_size1"></asp:Label>
                                <%--<asp:TextBox ID="textBoxRequestingOrganizationLevel" runat="server" CssClass="textbox_customsize"
                                    Width="130px" MaxLength="5"></asp:TextBox>
                                <asp:Button ID="ButtonRequestingOrganizationLevel" runat="server" Text="..." CssClass="button_browse" />--%>
                                <asp:DropDownList ID="dropDownListRequestingOrganizationLevel" runat="server" CssClass="select"
                                    AutoPostBack="True" AppendDataBoundItems="True" OnSelectedIndexChanged="dropDownListRequestingOrganizationLevel_SelectedIndexChanged">
                                    <asp:ListItem Value="0" Text="-Select-" Selected="True"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td>
                            </td>
                            <td align="right" width="">
                                <asp:Label ID="labelTransactionNo" runat="server" Text="Transaction No" CssClass="legendlabel_size1"></asp:Label>
                                <%--<asp:TextBox ID="textBoxTransactionNo" runat="server" CssClass="disable_textbox1"
                                    Width="150px" MaxLength="8"></asp:TextBox>
                                <asp:Button ID="ButtonTransactionNo" runat="server" Text="..." CssClass="button_browse" />--%>
                                <asp:DropDownList ID="dropDownListTransactionNo" runat="server" CssClass="select"
                                    AutoPostBack="True" AppendDataBoundItems="True" OnSelectedIndexChanged="dropDownListTransactionNo_SelectedIndexChanged">
                                    <asp:ListItem Value="0" Text="-Select-" Selected="True"></asp:ListItem>
                                </asp:DropDownList>
                                <asp:HiddenField ID="hiddenFieldTransactionNo" runat="server" />
                            </td>
                        </tr>
                    </table>
                </div>
            </li>
        </ul>
        <ul class="form">
            <li>
                <div class="formfield">
                    <table>
                        <tr>
                            <td>
                                <asp:Label ID="labelRequestingPerson" runat="server" Text="Requesting Person" CssClass="legendlabel_size1"></asp:Label>
                                <%--<asp:TextBox ID="textBoxRequestingPerson" runat="server" CssClass="textbox_customsize"
                                    Width="130px" MaxLength="5"></asp:TextBox>
                                <asp:Button ID="ButtonRequestingPerson" runat="server" Text="..." CssClass="button_browse" />--%>
                                <asp:DropDownList ID="dropDownListRequestingPerson" runat="server" CssClass="select"
                                    AutoPostBack="True" AppendDataBoundItems="True">
                                    <%-- <asp:ListItem Value="0" Text="-Select-" Selected="True"></asp:ListItem>--%>
                                </asp:DropDownList>
                            </td>
                            <td>
                            </td>
                            <td align="right" width="">
                                <asp:Label ID="labelStatus" runat="server" Text="Status" CssClass="legendlabel_size1"></asp:Label>
                                <asp:TextBox ID="textBoxStatus" runat="server" CssClass="disable_textbox1" Width="100px"
                                    MaxLength="8"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </div>
            </li>
        </ul>
        <ul class="form">
            <li>
                <div class="formfield">
                    <table>
                        <tr>
                            <td>
                                <asp:Label ID="labelIssuingOrganizationLevel" runat="server" Text="Issuing Organization Level"
                                    CssClass="legendlabel_size1"></asp:Label>
                                <%--<asp:TextBox ID="textBoxIssuingBusinessUnit" runat="server" CssClass="textbox_customsize"
                                    Width="130px" MaxLength="5"></asp:TextBox>
                                <asp:Button ID="ButtonIssuingBusinessUnit" runat="server" Text="..." CssClass="button_browse" />--%>
                                <asp:DropDownList ID="dropDownListIssuingOrganizationLevel" runat="server" CssClass="select"
                                    AutoPostBack="True" AppendDataBoundItems="True">
                                    <asp:ListItem Value="0" Text="-Select-" Selected="True"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td>
                            </td>
                            <td align="right" width="">
                                <asp:Label ID="labelTransactionDate" runat="server" Text="Transaction Date" CssClass="legendlabel_size1"></asp:Label>
                                <asp:TextBox ID="textBoxTransactionDate" runat="server" CssClass="disable_textbox1"
                                    Width="100px" MaxLength="8"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </div>
            </li>
        </ul>
    </fieldset>
    <br />
    <fieldset>
        <ul class="form">
            <li>
                <div>
                    <asp:GridView ID="gridViewARNItemDetails" runat="server" Caption="ARN Item Details"
                        CssClass="ColStyle" EmptyDataText="No data to display" AllowPaging="True" PageSize="10"
                        AutoGenerateColumns="false" Width="100%">
                        <RowStyle CssClass="RowStyle" />
                        <AlternatingRowStyle CssClass="AltRowStyle" />
                        <HeaderStyle CssClass="GridHeader" />
                        <SelectedRowStyle CssClass="SelectedRowStyle" />
                        <Columns>
                            <asp:CommandField ItemStyle-Width="20" ShowSelectButton="True" ButtonType="Image"
                                SelectImageUrl="~/styles/images/Select_icon_button.gif" />
                            <asp:BoundField HeaderText="Category" DataField="Category" ItemStyle-Width="40" />
                            <asp:BoundField HeaderText="SubCategory" DataField="SubCategory" ItemStyle-Width="120"
                                ItemStyle-HorizontalAlign="Left" />
                            <asp:BoundField HeaderText="Asset" DataField="Asset" ItemStyle-Width="120" ItemStyle-HorizontalAlign="Left" />
                            <asp:BoundField HeaderText="Quantity" DataField="Quantity" ItemStyle-Width="120"
                                ItemStyle-HorizontalAlign="Right" />
                            <asp:BoundField HeaderText="UnitofMeasure" DataField="UnitofMeasure" ItemStyle-Width="120" />
                        </Columns>
                    </asp:GridView>
                </div>
            </li>
        </ul>
        <ul class="form">
            <li>
                <div>
                    <asp:GridView ID="gridViewTransactionARN" runat="server" Caption="Company Assets"
                        CssClass="ColStyle" EmptyDataText="No data to display" AllowPaging="True" PageSize="10"
                        AutoGenerateColumns="false" Width="100%">
                        <RowStyle CssClass="RowStyle" />
                        <AlternatingRowStyle CssClass="AltRowStyle" />
                        <HeaderStyle CssClass="GridHeader" />
                        <SelectedRowStyle CssClass="SelectedRowStyle" />
                        <Columns>
                            <asp:CommandField ItemStyle-Width="20" ShowSelectButton="True" ButtonType="Image"
                                SelectImageUrl="~/styles/images/Select_icon_button.gif" />
                            <asp:TemplateField HeaderText="AssetCode" ItemStyle-HorizontalAlign="Center">
                                <ItemTemplate>
                                    <asp:Label ID="labelAssetCode" runat="server" Text='<%# Eval("Assets.Code")%>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Description" ItemStyle-HorizontalAlign="Center">
                                <ItemTemplate>
                                    <asp:Label ID="labelAssetDescription" runat="server" Text='<%# Eval("Assets.Description")%>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField HeaderText="Quantity" DataField="Quantity" ItemStyle-Width="120" ItemStyle-HorizontalAlign="Right" />
                            <asp:BoundField HeaderText="UnitOfMeasure" DataField="UnitOfMeasure" ItemStyle-Width="120" />
                        </Columns>
                    </asp:GridView>
                </div>
            </li>
        </ul>
        <ul class="form">
            <li>
                <div class="formfield">
                    <asp:Label ID="labelMainCategory" runat="server" Text="Main Category" CssClass="legendlabel_size1"></asp:Label>
                    <asp:DropDownList ID="dropDownListMainCategory" runat="server" CssClass="select"
                        AutoPostBack="True" AppendDataBoundItems="True" OnSelectedIndexChanged="dropDownListMainCategory_SelectedIndexChanged">
                        <asp:ListItem Value="0" Text="-Select-" Selected="True"></asp:ListItem>
                    </asp:DropDownList>
                    <asp:HiddenField ID="hiddenFieldMainCategory" runat="server" />
                </div>
            </li>
        </ul>
        <ul class="form">
            <li>
                <div class="formfield">
                    <asp:Label ID="labelSubCategory" runat="server" Text="Sub Category" CssClass="legendlabel_size1"></asp:Label>
                    <%--<asp:TextBox ID="textBoxSubCategory" runat="server" CssClass="textbox_customsize"
                        Width="100px" MaxLength="8"></asp:TextBox>
                    <asp:Button ID="ButtonSubCategory" runat="server" Text="..." CssClass="button_browse" />--%>
                    <asp:DropDownList ID="dropDownListSubCategory" runat="server" CssClass="select" AutoPostBack="True"
                        AppendDataBoundItems="True" OnSelectedIndexChanged="dropDownListSubCategory_SelectedIndexChanged">
                        <asp:ListItem Value="0" Text="-Select-" Selected="True"></asp:ListItem>
                    </asp:DropDownList>
                    <asp:HiddenField ID="hiddenFieldSubCategory" runat="server" />
                </div>
            </li>
        </ul>
        <ul class="form">
            <li>
                <div class="formfield">
                    <asp:Label ID="labelAsset" runat="server" Text="Asset" CssClass="legendlabel_size1"></asp:Label>
                    <%--<asp:TextBox ID="textBoxAsset" runat="server" CssClass="textbox_customsize" Width="180px"
                        MaxLength="8"></asp:TextBox>
                    <asp:Button ID="buttonAsset" runat="server" Text="..." CssClass="button_browse" />--%>
                    <asp:DropDownList ID="dropDownListAsset" runat="server" CssClass="select" AutoPostBack="True"
                        AppendDataBoundItems="True" OnSelectedIndexChanged="dropDownListAsset_SelectedIndexChanged">
                        <asp:ListItem Value="0" Text="-Select-" Selected="True"></asp:ListItem>
                    </asp:DropDownList>
                    <asp:HiddenField ID="hiddenFieldAsset" runat="server" />
                </div>
            </li>
        </ul>
        <ul class="form">
            <li>
                <div class="formfield">
                    <asp:Label ID="labelQuantity" runat="server" Text="Quantity" CssClass="legendlabel_size1"></asp:Label>
                    <asp:TextBox ID="textBoxQuantity" runat="server" CssClass="textbox_customsize" Width="100px"
                        MaxLength="8"></asp:TextBox>
                </div>
            </li>
        </ul>
        <%--<fieldset>
            <ul class="form">
                <li>
                    <div>
                        <asp:GridView ID="gridView1" runat="server" Caption="Company Assets" CssClass="ColStyle"
                            EmptyDataText="No data to display" AllowPaging="True" PageSize="10" AutoGenerateColumns="false"
                            Width="100%">
                            <RowStyle CssClass="RowStyle" />
                            <AlternatingRowStyle CssClass="AltRowStyle" />
                            <HeaderStyle CssClass="GridHeader" />
                            <SelectedRowStyle CssClass="SelectedRowStyle" />
                            <Columns>
                                <asp:CommandField ItemStyle-Width="20" ShowSelectButton="True" ButtonType="Image"
                                    SelectImageUrl="" />
                                <asp:BoundField HeaderText="#" DataField="#" ItemStyle-Width="40" />
                                <asp:BoundField HeaderText="Item Serial" DataField="Item Serial" ItemStyle-Width="120"
                                    ItemStyle-HorizontalAlign="Right" />
                                <asp:TemplateField HeaderText="Pu. Date" ItemStyle-HorizontalAlign="Right">
                                    <ItemTemplate>
                                        <asp:TextBox ID="textBoxPuDate" runat="server" CssClass="textbox_customsize" Width="80px"
                                            MaxLength="5" Text="2-May-2010"></asp:TextBox>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Pu. Value">
                                    <ItemTemplate>
                                        <asp:TextBox ID="textBoxPuValue" runat="server" CssClass="textbox_customsize" Width="80px"
                                            MaxLength="10" Text="100000"></asp:TextBox>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField HeaderText="Cumulative Dep. Value" DataField="Cumulative Dep. Value"
                                    ItemStyle-Width="120" />
                            </Columns>
                        </asp:GridView>
                    </div>
                </li>
            </ul>
        </fieldset>--%>
        <ul class="form">
            <li>
                <div class="formfield">
                    <table>
                        <tr>
                            <td>
                                <asp:Button ID="ButtonAdd" runat="server" Text="Add" CssClass="button_normal" OnClick="ButtonAdd_Click" />
                            </td>
                            <td style="width: 20%">
                            </td>
                            <td>
                                <asp:Button ID="ButtonApply" runat="server" Text="Apply" CssClass="button_normal"
                                    OnClick="ButtonApply_Click" Enabled="False" />
                            </td>
                        </tr>
                    </table>
                </div>
            </li>
        </ul>
        <fieldset>
            <ul class="form">
                <li>
                    <div class="formfield">
                        <table>
                            <tr>
                                <td style="width: 90%">
                                </td>
                                <td>
                                    <asp:Button ID="ButtonSave" runat="server" Text="Save" CssClass="button_normal" OnClick="ButtonSave_Click" />
                                </td>
                                <td>
                                    <asp:Button ID="ButtonConfirm" runat="server" Text="Confirm" CssClass="button_normal"
                                        OnClick="ButtonConfirm_Click" />
                                </td>
                                <td>
                                    <asp:Button ID="ButtonPrint" runat="server" Text="Print" CssClass="button_normal" />
                                </td>
                            </tr>
                        </table>
                    </div>
                </li>
            </ul>
        </fieldset>
    </fieldset>
</asp:Content>
